package com.ruoyi.cpsp.service;/*
    @author neu.xiangwenjuan
    @create 2023/3/14
*/

import com.ruoyi.cpsp.domain.CurrentPerformanceTotal;
import com.ruoyi.cpsp.domain.PreviousPerformanceData;
import com.ruoyi.cpsp.domain.PreviousPerformanceDataEn;

import java.util.List;

public interface PreviousPerformanceDataService {

    int insert(PreviousPerformanceData currentPerformanceData);

    int updateByPrimaryKeySelective(PreviousPerformanceData record);

    List<PreviousPerformanceDataEn> selectAll(Integer year, Integer quarter);

    List<PreviousPerformanceDataEn> selectDataByIdCard(Integer year, Integer quarter, List<String> idCardList);

    List<PreviousPerformanceDataEn> selectSelective(Integer quarter,
                                                    Integer year,
                                                    String department,
                                                    Integer teamGroup,
                                                    String employeeInfo);

    CurrentPerformanceTotal selectDataTotal(Integer quarter,
                                            Integer year,
                                            String department,
                                            Integer teamGroup);

    boolean updatePreviousData(PreviousPerformanceData previousPerformanceData);

    List<PreviousPerformanceData> selectPreviousIsEmpty(Integer year, Integer quarter, String employee_idCard);

    int deletePreviousPerformanceInfo(Integer year,
                                      Integer quarter,
                                      String employee_idCard);
}
